﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System.Windows.Media;
using Rud.Holmgren.Tabulex3000.ViewModels;
using System.Windows.Data;

namespace Rud.Holmgren.Tabulex3000.Controls
{
    public partial class TimePickerControl : UserControl
    {
        // public List<DottedButtonControl> Items { get; set; }



        public IEnumerable<DottedButtonViewModel> Items
        {
            get { return (IEnumerable<DottedButtonViewModel>)GetValue(ItemsProperty); }
            set { SetValue(ItemsProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Items.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ItemsProperty =
            DependencyProperty.Register("Items", typeof(IEnumerable<DottedButtonViewModel>), typeof(TimePickerControl), new PropertyMetadata(null));

        
        public TimePickerControl()
        {
            InitializeComponent();
            LayoutRoot.DataContext = this;
        }
    }
}
